﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Utilities.Validation
{
    public class ZHResources
    {
        #region 默认
        public static string notempty_error
        {
            get
            {
                return "请输入{PropertyName}.";
            }
        }
        public static string notequal_error
        {
            get
            {
                return "{PropertyName}不能等于{PropertyValue}.";
            }
        }
        public static string notnull_error
        {
            get
            {
                return "请输入{PropertyName}.";
            }
        }
        public static string greaterthan_error
        {
            get
            {
                return "{PropertyName}必须大于{ComparisonValue}.";
            }
        }
        public static string equal_error
        {
            get
            {
                return "{PropertyName}和{PropertyValue}不相等.";
            }
        }
        public static string length_error
        {
            get
            {
                return "{PropertyName}必须在{MinLength}和{MaxLength}字符之间.目前有{TotalLength}个字符.";
            }
        }
        public static string email_error
        {
            get
            {
                return "{PropertyName}不是一个有效地电子邮件地址.";
            }
        }
        public static string regex_error
        {
            get
            {
                return "{PropertyName}格式错误.";
            }
        }
        public static string predicate_error
        {
            get
            {
                return "{PropertyName}不符合指定条件.";
            }
        }
        public static string lessthanorequal_error
        {
            get
            {
                return "{PropertyName}不能大于{ComparisonValue}.";
            }
        }
        public static string lessthan_error
        {
            get
            {
                return "{PropertyName}必须小于{ComparisonValue}.";
            }
        }
        public static string greaterthanorequal_error
        {
            get
            {
                return "{PropertyName}不能小于{ComparisonValue}.";
            }
        }
        public static string exact_length_error
        {
            get
            {
                return "{PropertyName}必须是{MaxLength}字符长度.你已经输入了{TotalLength}字符.";
            }
        }
        public static string exclusivebetween_error
        {
            get
            {
                return "{PropertyName}必须在{From}和{To}(排除)之间.你输入了{Value}.";
            }
        }
        public static string inclusivebetween_error
        {
            get
            {
                return "{PropertyName}必须在{From}和{To}之间.你输入了{Value}.";
            }
        } 
        #endregion

        #region 自定义
        public static string username_error
        {
            get
            {
                return "{PropertyName}必须是4-16位字符，只能由英文、数字及“_”、“-”组成.";
            }
        } 
        #endregion
    }
}
